package nccloud.mob.riart.message.actions;

import java.util.HashSet;
import java.util.Map;
import java.util.Set;

import com.alibaba.fastjson.JSONObject;

import nc.bs.logging.Logger;
import nc.vo.pub.BusinessException;
import nccloud.framework.mob.action.itf.IMobileAction;
import nccloud.framework.mob.container.IMobRequest;
import nccloud.framework.service.ServiceLocator;
import nccloud.riart.itf.mob.IMobPubService;

public class GetApproveBillCodeAction implements IMobileAction {
	Set<String> busiexceptionCodeSet = new HashSet<String>();

	@Override
	public Object doAction(IMobRequest request) {
		String jsonStr = request.read();
		JSONObject json2 = JSONObject.parseObject(jsonStr);
		String billtype = json2.get("billtype").toString();
		try {
			Map<String, String> map = ServiceLocator.find(IMobPubService.class)
					.getTargetCode(billtype);
			return map;
		} catch (BusinessException e) {
			Logger.error(e.getMessage(), e);
		}

		return null;
	}

}
